package com.book.oauth.server.login.log.dto;

import java.util.Date;
import java.math.BigDecimal;

import com.book.common.api.dto.BaseDto;
import com.book.common.util.DatetimeUtil;

import java.io.Serializable;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Description：登录日志 EntityDto
 *
 * @Author： leo.xiong
 * @CreateDate： 2020-05-26
 * @Email： leo.xiong@suyun360.com
 * Version:
 */
@Data
@ApiModel(value = "LoginLogDto", discriminator = "登录日志Dto", subTypes = {LoginLogDto.class})
public class LoginLogDto extends BaseDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "登录时间")
    @DateTimeFormat(pattern = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C)
    private Date loginTime;

    @ApiModelProperty(value = "登录地点")
    private String location;

    @ApiModelProperty(value = "IP地址")
    private String ip;

    @ApiModelProperty(value = "操作系统")
    private String systemInfo;

    @ApiModelProperty(value = "浏览器")
    private String browser;

}
